package cn.imu;

@MyAnnotation(value="test")
public class Person extends Creature<String> implements Comparable,MyInterface {
    public String name;
    private int age;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public Person() {
        super();
    }
    public Person(String name) {
        super();
        this.name = name;
    }
    @Override
    public String toString() {
        return "Person [name=" + name + ", age=" + age + "]";
    }
    public Person(String name, int age) {
        super();
        this.name = name;
        this.age = age;
    }
    @MyAnnotation(value="abc123")
    public void show() {
        System.out.println("我是一个人！");
    }
    public void display(String nation) {
        System.out.println("我的国籍是:"+nation);
    }
    @Override
    public int compareTo(Object o) {
        // TODO Auto-generated method stub
        return 0;
    }

}
